import React from 'react'
import { Button, Table } from 'antd'
export default function List(props) {
    const { addressData, columns, addModal } = props
    const add = () => {
        addModal()
    }
    return (
        <div>
            <Button type='primary' onClick={add}>新增</Button>
            <Table dataSource={addressData} columns={columns} rowKey={r => r.id} />
        </div>
    )
}
